package d0330;

public class Student{
    String name;
    int age;
    String gender;

    Student(){

    }
    Student(String name,int age,String gender){
        this.name=name;
        this.age=age;
        this.gender=gender;
    }
    public String toString(){
        return "This is a girl";
    }


    public void printNameCode(){
        System.out.println(name.hashCode());
    }

    public static void main(String[] args) {
        Student s1=new Student("小明",18,"male");
        Student s2=new Student("小洪",16,"female");
        System.out.println(s1);
        System.out.println(s2);;
    }
}